{template 'public/header'}
{template 'public/comhead'}
<link rel="stylesheet" type="text/css" href="../addons/zh_gjw/template/public/ygcsslist.css">
<ul class="nav nav-tabs">    
    <li><a href="{php echo $this->createWebUrl('usergrade')}">用户评级管理</a></li>
    <li class="active"><a href="{php echo $this->createWebUrl('addusergrade')}">添加/编辑用户评级</a></li>
</ul>
<div class="main">
    <form action="" method="post" class="form-horizontal form" enctype="multipart/form-data">
        <!--<input type="hidden" name="parentid" value="{$parent['id']}" />-->
        <div class="panel panel-default">
            <div class="panel-heading">
                添加/编辑用户评级
            </div>
            <div class="panel-body">
              <div class="form-group">
                  <label for="inputEmail3" class="col-sm-2 control-label">等级名称</label>
                  <div class="col-sm-10">
                      <input type="text"  name="name" value="{$list['name']}" class="form-control" id="inputEmail3" placeholder="请填写等级名称">
                  </div>
              </div>

              <div class="form-group">
                  <label for="inputEmail3" class="col-sm-2 control-label">升级条件</label>
                  <div class="col-sm-5">
                    <div class="input-group">
                        <input type="text"  name="money" value="{$list['money']}" class="form-control" id="inputEmail3" placeholder="请填写等级金额">
                        <span class="input-group-addon">元</span>
                    </div>
                    <div class="addcolor">消费多少金额后才能成为对应的等级</div>
                  </div>
              </div>

               <div class="form-group">
                  <label for="inputEmail3" class="col-sm-2 control-label">排序</label>
                  <div class="col-sm-10">
                      <input type="text"  name="orderby" value="{$list['orderby']}" class="form-control" id="inputEmail3" placeholder="请填写排序序号">
                      <div class="addcolor">数值越大越靠后</div>
                  </div>
              </div>
               </div>
            </div>
              <div class="form-group">
                 <div class="form-group col-sm-12">
                      <input type="submit" name="submit" value="提交" class="btn col-lg-3" style="color: white;background-color: #44ABF7;"/>
                  </div>
             
        </div>
        <input type="hidden" name="id" value="{$list['id']}"/>

  <input type="hidden" name="token" value="{$_W['token']}"/>

    </form>
</div>
<script type="text/javascript">
    $(function(){
        $("#frame-14").show();
        $("#yframe-14").addClass("wyactive");
    })
</script>